﻿using Admin.Model.Tool;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;

namespace Admin.IRepository
{
    public interface IRepository
    {
        Task<T> BaseInsert<T>(string sql, object param, IDbTransaction transaction = null);
        Task<int> BaseEdit(string sql, object param, IDbTransaction transaction = null);
        Task<int> BaseDelete(string sql, object param, IDbTransaction transaction = null);
        Task<T> BaseGet<T>(string sql, object param, CacheModel cacheEntity = null);
        Task<IEnumerable<T>> BaseGetList<T>(string sql, object param, CacheModel cacheEntity = null);
        Task<int> BaseQuery(string sql, object param);
    }
}
